Package-level declarations

Types

Link copied to clipboard

Names whoever the run acted for, pseudonymously.

Link copied to clipboard

Names the arm or cohort within an experiment.

Link copied to clipboard
Link copied to clipboard
data class ExtractionContentProfileRef(val name: String, val version: String)

Names a version of a host's extraction content profile.

Link copied to clipboard

Names the deployment the run executed in — an environment, a region, a release, a shard.

Link copied to clipboard

Names the experiment a run belongs to.

Link copied to clipboard
data class ExtractionFailure constructor(val code: ExtractionFailureCode, val stage: ExtractionFailureStage? = null, val providerStatus: Int? = null, val measure: ExtractionFailureMeasure? = null, val at: Instant = Instant.now(), val invocation: ExtractionInvocationId? = null)

One thing that went wrong during a run, said entirely in a closed vocabulary.

Link copied to clipboard

What kind of thing went wrong, from a fixed list.

Link copied to clipboard
data class ExtractionFailureMeasure(val quantity: ExtractionFailureQuantity, val value: Long)

One number a failure record carries, together with what it counts.

Link copied to clipboard

What a number attached to a failure counts, with its unit in the name.

Link copied to clipboard

Where in a run's work the failure happened, from a fixed list.

Link copied to clipboard
data class ExtractionInvocationId(val invocationIndex: Int, val attempt: Int)

The stable identity of one model call within a run: which call, and which try at it.

Link copied to clipboard

How one attempt at one model call ended.

Link copied to clipboard
data class ExtractionInvocationRecord constructor(val id: ExtractionInvocationId, val outcome: ExtractionInvocationOutcome = ExtractionInvocationOutcome.IN_FLIGHT, val configuredService: String? = null, val startedAt: Instant? = null, val finishedAt: Instant? = null, val usage: ExtractionModelUsage? = null, val providerResponse: ExtractionProviderResponseFacts? = null)

One attempt at one model call: its identity, and what was observed about it.

Link copied to clipboard
data class ExtractionModelUsage constructor(val inputTokens: Int? = null, val outputTokens: Int? = null, val totalTokens: Int? = null, val cachedInputTokens: Int? = null, val reasoningTokens: Int? = null)

Tokens a call actually consumed, as the provider reported them.

Link copied to clipboard
sealed class ExtractionOpaqueRef

A bounded, host-minted token that names something about a run without describing it.

Link copied to clipboard

Names the personalization state in force, without holding any of it.

Link copied to clipboard

Controls whose perspective propositions are extracted from in conversational text.

Link copied to clipboard
data class ExtractionProviderResponseFacts constructor(val responseModel: String? = null, val responseId: String? = null, val finishReason: String? = null, val systemFingerprint: String? = null)

What the provider said about its own response.

Link copied to clipboard

How much of a run someone could set up again from what the run recorded.

Link copied to clipboard
data class ExtractionRequest constructor(val sourceLocator: SourceLocator? = null, val sourceRevision: SourceRevisionRef? = null, val profile: ExtractionContentProfileRef? = null, val currentRun: ExtractionRunRef? = null)

What a caller wants to say about one extraction, on top of the text and the user it belongs to.

Link copied to clipboard
data class ExtractionRequestedModelConfig constructor(val modelRole: String? = null, val requestedModel: String? = null, val temperature: Double? = null, val topP: Double? = null, val topK: Int? = null, val maxTokens: Int? = null, val presencePenalty: Double? = null, val frequencyPenalty: Double? = null, val thinkingFingerprint: String? = null, val selectionFingerprint: String? = null, val timeout: Duration? = null)

What the run asked for.

Link copied to clipboard

Names the inbound request the run was started for.

Link copied to clipboard
class ExtractionRun constructor(val contextId: <Error class: unknown class>, val lineage: ExtractionRunLineage, val status: ExtractionRunStatus, val startedAt: Instant, val finishedAt: Instant? = null, val profile: ExtractionContentProfileRef? = null, sourceRevisions: List<SourceRevisionRef> = emptyList(), val fingerprints: ExtractionRunFingerprints = ExtractionRunFingerprints(), val runtime: ExtractionRuntimeIdentity = ExtractionRuntimeIdentity(), val requestedModel: ExtractionRequestedModelConfig? = null, val subjectRefs: ExtractionRunSubjectRefs = ExtractionRunSubjectRefs(), val experimentRef: ExtractionExperimentRef? = null, val cohortRef: ExtractionCohortRef? = null, val replayFidelity: ExtractionReplayFidelity = ExtractionReplayFidelity.NONE, val counts: ExtractionRunCounts = ExtractionRunCounts(), invocations: List<ExtractionInvocationRecord> = emptyList(), failures: List<ExtractionFailure> = emptyList(), val version: Long = 0)

The durable record of one extraction execution.

Link copied to clipboard

A write disagreed with what the store already holds.

Link copied to clipboard
data class ExtractionRunCounts constructor(val sourcesRead: Int = 0, val chunksProcessed: Int = 0, val propositionsExtracted: Int = 0, val propositionsPersisted: Int = 0, val propositionsRejected: Int = 0, val entitiesResolved: Int = 0)

How much a run got through.

Link copied to clipboard

The digest a store compares two terminal writes by.

Link copied to clipboard
data class ExtractionRunFingerprints constructor(val promptTemplateFingerprint: String? = null, val schemaFingerprint: String? = null, val metamodelFingerprint: String? = null)

The digests that say what a run ran against.

Link copied to clipboard
data class ExtractionRunKey(val contextId: <Error class: unknown class>, val runRef: ExtractionRunRef)

Identifies one run inside one tenant.

Link copied to clipboard

Every bound an extraction run obeys, in one place.

Link copied to clipboard

Where a run sits among the runs around it: its own reference, its parent, its root, what it supersedes, and which pass it is.

Link copied to clipboard

A write named a run the store does not hold.

Link copied to clipboard
data class ExtractionRunRef(val runId: String)

Names one extraction run.

Link copied to clipboard

Where an extraction run stands.

Link copied to clipboard

Durable store of extraction runs, and the lifecycle state machine that governs them.

Link copied to clipboard
data class ExtractionRunSubjectRefs constructor(val actor: ExtractionActorRef? = null, val request: ExtractionRequestRef? = null, val session: ExtractionSessionRef? = null, val personalization: ExtractionPersonalizationRef? = null, val deployment: ExtractionDeploymentRef? = null)

The five pseudonymous references a run carries about whose work it was.

Link copied to clipboard
data class ExtractionRuntimeIdentity constructor(val extractor: String? = null, val extractorVersion: String? = null, val hostApplication: String? = null, val runtime: String? = null, val runtimeVersion: String? = null)

What code ran the run, and where.

Link copied to clipboard
class ExtractionRunTransition constructor(val status: ExtractionRunStatus, val finishedAt: Instant, val counts: ExtractionRunCounts? = null, failures: List<ExtractionFailure>? = null)

One terminal write against a run: the state it ends in, when it ended, and the counts and failures that go with it.

Link copied to clipboard

Whether a terminal write did the work or found it already done.

Link copied to clipboard

What a terminal write returned: the run in its terminal state, and whether this call is what put it there.

Link copied to clipboard

Names the conversation or session the material came from.

Link copied to clipboard
open class IncrementalPropositionExtraction constructor(propositionPipeline: PropositionPipeline, chunkHistoryStore: ChunkHistoryStore, dataDictionary: <Error class: unknown class>, relations: Relations, propositionRepository: PropositionRepository, entityRepository: <Error class: unknown class>, entityResolver: EntityResolver, graphProjectionService: GraphProjectionService, properties: PropositionExtractionProperties, contextIdProvider: Function<<Error class: unknown class>, String> = Function { it.id }, promptVariablesProvider: Function<<Error class: unknown class>, Map<String, Any>> = Function { emptyMap() }, extraKnownEntitiesProvider: (<Error class: unknown class>, String) -> List<<Error class: unknown class>> = { _, _ -> emptyList() }, groundingWiringService: GroundingWiringService? = null, currentUserAliasesProvider: (<Error class: unknown class>) -> List<String> = { _ -> emptyList() }, mintNewEntitiesDefault: Boolean = false, mintedEntityPropertiesProvider: (<Error class: unknown class>) -> Map<String, Any> = { _ -> emptyMap() })

Generic async proposition extraction from incremental sources (conversations, message streams, etc.). Uses IncrementalAnalyzer for windowed, deduplicated processing.

Link copied to clipboard
class InMemoryExtractionRunStore constructor(listener: DiceEventListener = DiceEventListener.DEV_NULL, maxRuns: Int) : ExtractionRunStore

Reference ExtractionRunStore that keeps runs in a map.

Link copied to clipboard
class InMemoryPropositionRunLinkStore constructor(runStore: ExtractionRunStore, propositionStore: PropositionStore, maxRuns: Int) : PropositionRunLinkStore

Reference PropositionRunLinkStore that keeps the relation in a map.

Link copied to clipboard

What happens when a run's lineage cannot be written.

Link copied to clipboard

A run's lineage could not be recorded, under LineageFailurePolicy.STRICT.

Link copied to clipboard
data class LlmPropositionExtractor(llmOptions: <Error class: unknown class>, ai: <Error class: unknown class>, template: String = "dice/extract_propositions", examples: List<<Error class: unknown class><PropositionsResult>> = emptyList(), val schemaAdherence: SchemaAdherence = SchemaAdherence.DEFAULT, val existingPropositionsToShow: Int = 100, propositionRepository: PropositionRepository? = null, val perspective: ExtractionPerspective = ExtractionPerspective.ALL) : PropositionExtractor, ExtractionConfig

LLM-based proposition extractor. Uses a Jinja template to extract propositions from chunks.

Link copied to clipboard
data class PropositionExtractionProperties(val enabled: Boolean = true, val extractionLlm: <Error class: unknown class>? = null, val entityResolutionLlm: <Error class: unknown class>? = null, val windowSize: Int = 10, val overlapSize: Int = 2, val triggerInterval: Int = 6, val showPrompts: Boolean = false, val showResponses: Boolean = false, val entityPackages: List<String> = emptyList(), val existingPropositionsToShow: Int = 100, val classifyBatchSize: Int = 15, val classifyLlm: <Error class: unknown class>? = null, val projectionLlm: <Error class: unknown class>? = null)

Shared configuration for proposition extraction from conversations. Used by any application integrating the DICE memory pipeline.

Link copied to clipboard

A link named a proposition the run's tenant does not hold.

Link copied to clipboard

Which extraction runs produced which claims.

Link copied to clipboard
data class PropositionsResult(val propositions: List<SuggestedProposition>)

Class for parsing LLM output.

Link copied to clipboard

The shape of a reference to failure material a host keeps for itself. Specification only.

Link copied to clipboard
data class TemplateModel(val context: SourceAnalysisContext, val chunk: <Error class: unknown class>, val schemaAdherence: SchemaAdherence, val existingPropositions: List<Proposition>, val perspective: ExtractionPerspective = ExtractionPerspective.ALL) : ExtractionConfig

Model passed to the Jinja template for proposition extraction.